﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AFCEPF.BankApplication.BLL
{
    public class AccountEventArgs : EventArgs
    {
        private Customer _holder;
        private double _balance;

        /// <summary>
        /// ctor.
        /// </summary>
        /// <param name="holder">The holder.</param>
        /// <param name="currentBalance">The current balance.</param>
        public AccountEventArgs(Customer holder, double currentBalance)
        {
            _holder = holder;
            _balance = currentBalance;
        }


        /// <summary>
        /// Gets the balance.
        /// </summary>
        public double Balance
        {
            get { return _balance; }            
        }

        /// <summary>
        /// Gets the account's holder.
        /// </summary>        
        public Customer Holder
        {
            get { return _holder; }            
        }



    }
}
